package com.yyg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yyg.entity.EasyUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<EasyUser> {
    public List<EasyUser> getAllUser(@Param("username")String username,@Param("pageStart")int PageStart,@Param("pageSize")int PageSize);
    public int getUserCounts(@Param("username")String username);
    public int updateState(Integer id,Boolean state);
    public int addUser(EasyUser easyUser);
    public int deleteUser(int id);
    public EasyUser getUpdateUser(int id);
    public int editUser(EasyUser user);
}
